Parse stream_tokens config explicitly in LangGraph adapter#9
Draft
Copilot wants to merge 4 commits into
Draft
Conversation
- Introduced `emit_step_updated` and `emit_token_delta` methods in the AdapterContext for handling real-time metrics and token streaming. - Updated LangGraphAdapter to support streaming token deltas and deferred step metrics, improving responsiveness during model invocation. - Modified RunService to handle new event types `step.updated` and `token.delta`, ensuring proper state management and broadcasting. - Enhanced API documentation to reflect new event types and their payload structures. - Added tests to verify the functionality of token streaming and step updates in the LangGraph adapter.
…ew-comment Co-authored-by: Emiyaaaaa <37606228+Emiyaaaaa@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Emiyaaaaa/HiveMind/sessions/fd61a3c4-b3cb-4cf4-bdb1-e0d4dbe53260 Co-authored-by: Emiyaaaaa <37606228+Emiyaaaaa@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix code according to review comment
Parse May 22, 2026
stream_tokens config explicitly in LangGraph adapter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This addresses the review feedback on PR #7 around
stream_tokenshandling in the LangGraph adapter. The adapter previously used Python truthiness, so non-empty string values like"false"incorrectly enabled token streaming.Config parsing
bool(stream_tokens)with explicit coercion for untyped config values."true","false","1","0","yes","no","on","off").truewhen the field is omitted or unrecognized.Focused test coverage
stream_tokensinputs to ensure"false"disables token streaming and"true"enables it.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
registry.npmmirror.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/_temp/ghcca-node/node/bin/npm ci(dns block)If you need me to access, download, or install something from one of these locations, you can either: